//
//  AirGraphicsContext.h
//  AirCpp
//
//  Created by Penghao on 14-3-6.
//  Copyright (c) 2014年 PengHao. All rights reserved.
//

#ifndef __AirCpp__AirGraphicsContext__
#define __AirCpp__AirGraphicsContext__

#include <iostream>
#include "../../AirOSInclude/AirOSInclude.h"

#ifdef OSLinux
#include "IOSGraphicsContext.h"
#endif

namespace AirCpp {
#ifdef OSLinux
    typedef IOSGraphicsContext OSGraphicsContext;
#endif
    class AirGraphicsContext : public AirObject{
    private:
        OSGraphicsContext context;
    public:
        int init(void *_drawable){
            return context.init(_drawable);
        }
        
        int active(){
            return context.active();
        }
        
        void display_content(){
            context.display();
        }
        
        int bind_to_drawable_storage(){
            return context.bind_to_drawable_storage();
        }
        
    };
}

#endif /* defined(__AirCpp__AirGraphicsContext__) */
